Sustaining session connections

ABSTRACT

In an embodiment, techniques for sustaining session connections are provided. The techniques send heartbeat messages when not sending a message may cause the session connection to close because of a timeout condition. Heartbeat messages are valid transport layer messages that will be ignored by protocols at higher levels of a data communications stack. As an example, the techniques may send a TCP message containing only a carriage return and line feed (“CRLF”) in its payload. Because the TCP layer considers a message containing only a CRLF to be a valid TCP message, intermediary computing devices such as proxy servers may not interpret heartbeat messages as “keep alive” messages, and may sustain session connections.

TECHNICAL HELD

The described technology relates generally to data communicationsnetworks and, more particularly, to sustaining session connections.

BACKGROUND

Users of computing devices sometimes use their computing devices tocommunicate with other users. As an example, a user may communicate withanother user using a computing device by sending or receiving typedmessages, such as by using the MICROSOFT MESSENGER (“MESSENGER”) instantmessaging product. As another example, a user may communicate withanother user by speaking into a microphone and hearing the other user ona speaker or headset, such as by using a Voice over Internet Protocol(“VoIP”) application. These users may use a variety of computing devicessuch as personal computers, personal digital assistants, cellulartelephones, VoIP-enabled telephones, etc.

Applications providing these types of communications services to usersmay also need to provide presence information. Presence informationconveys an ability or willingness of a user to communicate using acomputing device. Presence information can be detected automatically bycomputing devices or actively selected by users. A computing device mayautomatically observe and communicate presence information, such as auser's “status.” As an example, when a user is not logged into anycomputing device or is not using (or logged into) an application thatobserves and conveys presence information, the user's status may beautomatically indicated as “off-line.” When the user starts or logs intoan application that observes and conveys presence information, such asMESSENGER, the user's status may be automatically indicated as“on-line.” When the user performs no actions on the computing device fora period of time, the application may automatically indicate that theuser is “away.” Users can also actively select their status. Asexamples, users may indicate that they are “out for lunch” or “busy,”which could be indications that they may not immediately respond tomessages from other users.

Multiple computing devices may register this presence information with aregistration server computing device so that a “watcher,” which is anapplication desiring to determine a user's status, can determinemeaningful presence information by querying the registration server orsubscribing to automatically receive presence information. As anexample, MESSENGER may indicate to the registration server that the userhas not performed any actions on the computing device for a period oftime, and so the user's presence information could be “away.” AVoIP-enabled phone may indicate to the registration server that the userhas placed a phone call, and so the user's presence information could be“on the phone.” When a watcher receives this presence information fromthe registration server, it may determine that the user's status is “onthe phone and unable to respond to messages on the computing device.”If, however, the user begins to perform actions on the computing device,the watcher may determine that the user's status is “on the phone, butable to respond to messages on the computing device.” If the useractively indicates on the computing device that the user's status is“away” and uses a VoIP-enabled phone, then the watcher may determinethat the user's status is “roaming.”

Communications applications sometimes need to establish and managesessions between computing devices. A session is a set of interactionsbetween computing devices that occurs over a period of time, As anexample, real-time communications applications such as MESSENGER or VoIPestablish sessions between communicating devices on behalf of users.These applications may use various mechanisms to establish sessions,such as a “Session Initiation Protocol” (“SIP”). SIP is anapplication-layer control protocol that computing devices can use todiscover one another and to establish, modify, and terminate sessionsbetween computing devices.

Applications may employ SIP with another protocol to send or receiveinformation. By using SIP with other protocols, applications can createand manage a session and exchange information during the session. Theprotocol employed with SIP to exchange information may segment theinformation into messages. As an example, a VoIP application may segmenta long narration into shorter messages. Exchanging messages during asession is referred to as a “dialog,” SIP may use lower-levelcommunications layers to transport a dialog's messages, such asTransmission Control Protocol/Internet Protocol (“TCP/IP”), which arecommonly employed transport- and network-layer protocols.

Transmission Control Protocol (“TCP”) is a connection-oriented, reliabledelivery transport layer protocol. TCP is typically described as atransport layer that provides an interface between an application layer(e.g., an application using SIP) and a network layer. The applicationlayer generally communicates with the TCP layer by sending or receivinga stream of data (e.g., a number of bytes of data). TCP organizes thisdatastream into segments that can be carried by the protocol employed atthe network layer, e.g., the Internet Protocol (“IP”). These segments ofdata are commonly referred to as “packets,” “frames,” or “messages.”Each message generally comprises a header and payload. The headercomprises data necessary for routing and interpreting the message. Thepayload comprises the actual data that is being sent or received. Theapplication, transport, and network layers, together with other layers,are jointly referred to as a data communications stack.

Messages in a connection may transit intermediary computing devices.When a transport or network layer of a sending computing device's datacommunications stack establishes a connection with a corresponding layerof a data communications stack in a receiving computing device, messagesexchanged by the computing devices may transit several intermediarycomputing devices. As examples, messages may transit proxy servers,network address translators, or gateways. These intermediary computingdevices receive, process, and forward messages. As an example, a proxyserver may be an intermediary between computing devices connected to anintranet and computing devices connected to the Internet. This proxyserver may attempt to make the intranet more secure by, e.g., ignoringconnection requests from outside the intranet.

Intermediary computing devices may terminate idle connections betweentwo computing devices to use network resources efficiently. As anexample, a MESSENGER or VoIP application executing on a user's computingdevice connected to an intranet (“computing device A”) may establish aSIP-based session with an application executing on another computingdevice connected to the Internet (“computing device B”). This sessionmay use a TCP/IP connection between computing devices A and B, andmessages exchanged by the computing devices may transit a proxy server.When no messages are exchanged in the connection for a period of time,the proxy server may close the connection between it and computingdevice B to conserve network resources. However, computing device A maybe unaware that the connection is closed because its connection to theproxy server remains open. As a result, the application executing oncomputing device B may mistakenly assume that the application (or user)of computing device A is no longer online or using the connection.Moreover, to make the intranet to which the proxy server is connectedmore secure, the proxy server may ignore connection requests fromdevices not connected to the intranet, such as computing devicesconnected to the Internet. Consequently, the application executing oncomputing device 8, which is connected to the Internet, may be unable toquery the application executing on computing device A for its status orrequest to reestablish a session.

Intermediary computing devices may close connections even when computingdevices use a “keep-alive” mechanism. Some computing devices employ akeep-alive mechanism to keep a connection alive despite a lack ofmessages. This mechanism involves sending “keep-alive” messages toindicate that the sender has not closed the connection. However,efficient intermediary computing devices may recognize keep-alivemessages and, while keeping alive connections between the sendingcomputing devices and the intermediary computing device, may terminatethe connection to the recipient indicated in the keep-alive message(e.g., to computing devices connected to the Internet).

A connection may be sustained by sending a valid message of anapplication layer As an example, a SIP application employing TCP in atransport layer may periodically send a valid SIP message, such as aREGISTER message. A REGISTER message may be used to enable a SIP serverto associate a Uniform Resource Identifier (“URI”) of the sender of themessage with the computing device used by the sender. When the valid SIPmessage cannot be sent or received, the SIP application may detect thatits TCP connection is unavailable. A problem with sending REGISTER, orindeed any valid SIP message containing valid data, is that doing socould be computationally intensive when multiple clients and serversneed to do so to sustain connections. In the case of REGISTER messages,a server receiving such a message may need to parse the message todetermine the URI and the identity of the sender's computing device, andmay further need to store the data in a database that is possibly onanother server.

Thus, an effective approach to sustaining session connections that doesnot rely on TCP keep-alives or extensive computational processing ofmessages would have significant utility.

SIP is an Internet proposed standard. Its specification, “RFC 3261” isavailable at <http://www.ietf.org/rfc/rfc3261.txt>. A specification forextensions to SIP relating to event notifications, “RFC 3265,” isavailable at <http://www.ietf.org/rfc/rfc3265.txt>. A specificationrelating to presence information in instant messaging systems, “RFC2778,” is available at <http://www.ietf/org/rfc/rfc2778.txt>. A draft ofa proposed specification relating to presence information in SIP isavailable at<http://www.ietf/org/internet-drafts/draft-ietf-simple-presence-10.txt>.All four of these specifications are incorporated herein in theirentirety by reference.

SUMMARY

In an embodiment, techniques for sustaining session connections areprovided. The techniques send heartbeat messages when not sending amessage may cause the session connection to close because of a timeoutcondition. Heartbeat messages are valid transport layer messages thatwill be ignored by protocols at higher levels of a data communicationsstack. As an example, the techniques may send a TCP message containingonly a carriage return and line feed (“CRLF”) in its payload. Becausethe TCP layer considers a message containing only a CRLF to be a validTCP message, intermediary computing devices such as proxy servers maynot interpret heartbeat messages as “keep alive” messages, and maysustain session connections,

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram illustrating an embodiment of a system forsustaining session connections.

FIG. 2 is a block diagram illustrating an embodiment of a network ofFIG. 1.

FIG. 3 is a block diagram illustrating an embodiment of datacommunications stacks employed by computing devices.

FIG. 4 is a flow diagram illustrating an embodiment of a send_messageroutine.

FIG. 5 is a flow diagram illustrating an embodiment of asustain_connection routine.

FIG. 6 is a flow diagram illustrating an embodiment of a send_heartbeatsubroutine.

FIG. 7 is a flow diagram illustrating an embodiment of a receive_messagesubroutine.

FIG. 8 is a message flow diagram illustrating message flows in anembodiment.

FIG. 9 is a message flow diagram illustrating message flows in anembodiment.

FIG. 10 is a block diagram illustrating a flow of messages in anembodiment.

DETAILED DESCRIPTION

In an embodiment, techniques for sustaining session connections areprovided. The techniques send heartbeat messages when not sending amessage may cause the session connection to close because of a timeoutcondition. Heartbeat messages are valid transport layer messagescontaining a non-empty payload that will be ignored by protocols athigher levels of a data communications stack. As an example, thetechniques may send a TCP message containing only a carriage return andline feed (“CRLF”) in its payload. Because the TCP layer considers amessage containing only a CRLF to be a valid TCP message, intermediarycomputing devices such as proxy servers may reset a message clockrelating to the connection in which the message was sent or received.The message clock indicates an amount of time that has elapsed since amessage was last sent or received in the connection. When the messageclock of a connection indicates that a threshold amount of time haselapsed (e.g., indicating that a timeout condition has occurred), anintermediary computing device may close the connection. Because themessage clock is reset when a message is sent or received, theconnection may not be closed unless another message is not sent orreceived before the threshold amount, of time elapses. When the TCPlayer of the recipient computing device forwards the received heartbeatmessage to a higher layer of its data communications stack, the higherlayer may ignore the heartbeat message. As an example, SIP may ignoreotherwise valid SIP messages that contain only white space, such asspaces, tabs, carriage returns, line feeds, or CRLFs. If messagescontaining information other than CRLFs are received, the higher layermay attempt to interpret these messages as containing information thatcannot be ignored. In various embodiments, the heartbeat may containmerely carriage returns, line feeds, or any data that would be valid atthe transport layer but ignored by higher layers of the datacommunications stack. Thus, by sending valid transport layer messages,such as heartbeat messages that are ignored by SIP, the techniques cansustain session connections even when no information is exchangedbetween computing devices at layers of the data communications stackhigher than the transport layer. What sorts of messages are valid butignored may be defined in a protocol's specification or definition,

In an embodiment, messages ignored by layers above a transportationlayer may include, e.g., carriage returns, line feeds, spaces, tabs, orany white space characters in general. In an embodiment, such messagescontaining merely white space characters may end with a carriage returnor line feed. Characters that can be used in messages to sustainconnections without causing excessive computational burden may bedetermined by analyzing the protocols used above the protocol that couldclose connections (e.g., TCP).

Turning now to the Figures, FIG. 1 is a block diagram illustrating anembodiment of a system for sustaining session connections. The systemmay comprise one or more clients 102, one or more networks 104, and anetwork to connect the clients and the networks, such as the Internet114. The clients may be connected to the Internet via a networkconnection 108. The networks 104 may be connected to the Internet usingvarious forms of data communications links 110. Clients may be, e.g.,computers, cellular telephones, or other devices connected to theInternet. Networks may be, e.g., intranets. Clients may also be directlyconnected to networks using private data communications links 112.Similarly, networks may be directly connected to other networks usingprivate data communications links 112. The Internet may also beconnected to various other computing devices (not shown). Theconnections described herein can be physical, wireless, and indeed anyform of data communications network connection.

FIG. 2 is a block diagram illustrating an embodiment of a network ofFIG. 1. The network 200 comprises one or more clients 202, a server 204,and edge proxy server 212. The network may also comprise other devices(not shown). The illustrated devices of the network (and those notshown) may be interconnected via a data communications networkassociated with the network (not shown). The clients 202 and server 204may perform various activities, including exchanging SIP messages. Anedge proxy server 212 is connected both to the network 200 (“inside”network) and an “outside” network, e.g., the Internet (not shown), Whena client desires to open a session to a server outside the network, theedge proxy may, e.g., determine whether the session should be opened andwhich communications link should be used.

FIG. 3 is a block diagram illustrating an embodiment of datacommunications stacks employed by the computing devices of FIGS. 1 and2. Computing devices may use one or more data communications stacks tocommunicate with one another. In the illustrated example, computingdevice 300 communicates with computing device 303 using datacommunications stacks associated with these computing devices. Computingdevices 301 and 302 may receive and forward messages between computingdevices 300 and 303 using their associated data communications stacks.

Computing device 300 has a data communications stack comprising anapplication layer 304, transport layer 306, network layer 308, data linklayer 310, and physical layer 312. The application layer may comprise aSIP application and other applications. The SIP application may have acomponent or layer that communicates with the transport layer. Thiscommunications layer of the SIP application may send or receiveheartbeat messages. Computing devices 301, 302, and 303 may have similardata communications stacks. Specifically, computing device 303 may havea data communications stack comprising an application layer 314,transport layer 316, network layer 318, data link layer 320, andphysical layer 322. Some or all of these application layers mayadditionally comprise a SIP application.

When two computing devices are connected, layers of their datacommunications stacks may have logical or physical connections betweenone another, As an example, when computing device 300 is connected tocomputing device 303 via computing devices 301 and 302, physical layer312 may be connected via a physical connection 324 to the physical layerof computing device 301, which may be connected via a physicalconnection to the physical layer of computing device 302, and which maybe connected via a physical connection to the physical layer ofcomputing device 303. The computing devices may each be connected to oneanother via, e.g., a modem, network interface card, or other connection,such as over the Internet. The Internet is comprised of various physicalconnections, such as telephone lines, microwave links, and other formsof wired and wireless physical connections that together form multipleroutes for messages. Indeed, an early goal for the Internet was to makeit possible for a sender to communicate with a recipient despite networkoutages. When computing device 300 sends data to computing device 303,the data may travel on different physical routes through the Internet.

Higher layers of data communications stacks such as data link layers 310and 320, network layers 308 and 318, transport layers 306 and 316, andapplication layers 304 and 314 may be connected by logical connections,such as logical connections 326, 328, 330, and 332. When two layers ofa, data communications stack have a logical connection and exchangedata, the data may be sent “down” the data communications stack of thesending computing device to the physical layer of the datacommunications stack, across a physical connection, and then “up” thedata communications stack of the receiving computing device. As anexample, when a SIP application 304 of computing device 300 communicateswith a SIP application 314 of computing device 303, the SIP application304 may communicate data to transport layer 306, which may communicatethe data to network layer 308, which may communicate the data to datalink layer 310, which may communicate the data to physical layer 312.The physical layer 312 may communicate the data over the physicalconnection 324, and ultimately may communicate the data to the physicallayer 322. The physical layer 322 may communicate data it receives up todata link layer 320, which may communicate the data to network layer318, which may communicate the data to transport layer 316, whichultimately may communicate the data to the SIP application 314.

When computing devices 301 and 302 receive data on their physicalconnections, they may also send the data up their data communicationsstacks. It is possible that a lower level of the data communicationsstack than the application layer may be able to handle the received datawithout sending it to a higher layer. As an example, when SIPapplication 304 sends a SIP message to SIP application 314, it may senddata corresponding to the SIP message to transport layer 306. The datacommunications stack of computing devices 301 and 302, which bothreceive the data on their physical layers, may communicate the receivedup their data communications stack to their respective transport layers.The transport layers, which recognize from the received data that thedestination indicated in the data is computing device 303, may simplyforward the data to transport layer 316 (via their corresponding lowerlevels). Thus, the application/SIP layers of computing devices 301 and302 may not need to handle or even view the messages.

When no data is received by a transport layer of either computing device301 or 302 over a period of time, the computing device may close theconnection corresponding to a SIP session between computing devices 300and 303. As an example, if computing device 301 fails to receive anymessages on a connection from either computing device 300 or computingdevice 302, it may assume that the connection is no longer necessary andclose the connection. Thus, further SIP messages between computingdevice 300 and 303 may not be able to transit a previously openedconnection that transits computing devices 301 and 302.

FIG. 4 is a flow diagram illustrating an embodiment of a send_messageroutine. The routine may be performed by an application layer component,such as a component of a SIP application, to send a message. Thesend_message routine may be used by, e.g., a SIP application executingon a computing device when it sends a message to a SIP applicationexecuting on another computing device. The routine begins at block 402,where it receives an indication of a message as a parameter. At block404, the routine resets a clock value, such as by setting it to zero.The clock's value is an indication of time that has elapsed since amessage was last sent. This value may be checked by components of thesystem to determine whether a connection should be closed. At block 406,the routine sends the message received at block 402 to the transportlayer. The routine may use an application program interface exposed bythe transport layer to send the message. At block 408, the routinereturns to its caller.

FIG. 5 is a flow diagram illustrating an embodiment of asustain_connection routine. The routine is performed by an applicationlayer component, such as a component of a SIP application, to sustain aconnection. The connection may need to be sustained when, e.g., a clockvalue indicating an amount of time that has elapsed since a message waslast sent exceeds a timeout value, An appropriate timeout value may bedetermined by, e.g., using an API of the transport layer to determine aproperty of the transport layer, or may be defined by an administratorof the system. The routine begins at block 502, At block 504, theroutine determines whether the clock value is near the timeout value. Ifthe clock value exceeds the timeout value, it is possible that theconnection may already be closed. As a result, some period of timebefore the timeout value should be selected. If the clock value is nearthe timeout value, the routine continues at block 506. Otherwise, theroutine continues at block 508. At block 506, the routine calls asend_hearbeat subroutine, which sends a message that may sustain theconnection. The send_heartbeat subroutine is further described below inrelation to FIG. 6. At block 508, the routine returns to its caller.

The sustain_(—) connection routine may be called repeatedly in a loop ofa thread that is separate from threads that send or receive messages.Alternatively, the sustain_connection routine may be called in responseto a clock event that is triggered at some specified time interval priorto the timeout.

Alternatively, the sustain_(—) connection routine may simply send aheartbeat message at some interval less than the timeout valueregardless of the clock value. As an example, if a proxy server may timeout after one minute of inactivity, the routine may send a heartbeatmessage every 30 seconds even if a message was sent or received just afew seconds earlier.

FIG. 6 is a flow diagram illustrating an embodiment of a send_heartbeatsubroutine. The subroutine is performed by an application layercomponent, such as a component of a SIP application, to send a heartbeatmessage. The heartbeat message may be sent to sustain a connection thatmay close if no messages are sent in a connection over a period of time.The subroutine begins at block 602 where it receives an indication of asession as a parameter. At box 604, the subroutine creates a heartbeatmessage. A heartbeat message is a message that may be ignored by a layerof a data communications stack but may not be ignored by another layerof the data communications stack. As an example, a heartbeat message maybe sent by a SIP application to sustain a TCP connection when the TCPconnection is at risk of being closed by another computing device (e.g.a proxy server) that is handling messages between two computing deviceshaving an open SIP session. A heartbeat message may contain, e.g., onlyCRLF characters. Alternatively, a heartbeat message may contain one ormore spaces or tabs ending in a CRLF. A heartbeat message, instead ofusing a CRLF, could also use a carriage return or a linefeed character.To the TCP layer, such a message may be a valid message that resets aclock value when the message is sent or received. However, a SIPapplication may ignore such a message. Thus, by sending such a heartbeatmessage, the TCP connection may be held open, SIP presence informationmay thus remain accurate, and no useless information may be presented tothe SIP application. In alternate embodiments, merely a carriage returnor a line feed character may be sent in a heartbeat message.

At block 606, the subroutine calls the send_message subroutine andpasses to it the created heartbeat message as a parameter. Thesend_message subroutine is described above in relation to FIG. 4. Atblock 608, the subroutine returns to its caller.

FIG. 7 is a flow diagram illustrating an embodiment of a receive_messagesubroutine. The subroutine may be performed by an application layercomponent of a recipient computing device, such as a component of a SIPapplication. The subroutine begins at block 702, where it receives anindication of a message as a parameter. At block 704, the subroutinedetermines whether the received message is a heartbeat message. Thesubroutine may attempt to determine whether the received message is aheartbeat message by checking to see whether the message's contents aremerely carriage returns, line feeds, or both. Alternatively, the receivemessage subroutine may be customized to look for any other informationin the message known to identify a heartbeat message. If the receivedmessage is a heartbeat message, the subroutine continues at block 706.Otherwise, the subroutine continues at block 708. At block 706, thesubroutine may acknowledge the message. Typically, the transport layeracknowledges messages. However, in some cases, an application layercomponent may need to acknowledge messages. Because this step may beoptional depending on the application layer component performing thesubroutine, block 706 is indicated in dashed lines. At block 708, thesubroutine may forward the message to, e.g., a SIP application. At block710, the subroutine returns to its caller.

Upon receiving the message, the subroutine may reset a clock value (notshown) that may be used to determine whether a heartbeat message needsto be sent to sustain the session.

FIG. 8 is a message flow diagram illustrating message flows in anembodiment. In the illustrated embodiment, computing device 1 hasestablished a SIP session with computing device 2, Messages exchanged inthe session transit a proxy server. As an example, when computing device1 sends message 1 at time 0, the message transits the proxy server andcomputing device 2 receives the message at time 1. Similarly, whencomputing device 2 sends message 2 at time 2, the message transits theproxy server before computing device 1 receives it at time 3. The proxyserver may reset a clock whenever it forwards or receives a message. Asan example, when the proxy server forwards message 1, it resets theclock value to 0. Similarly, when the proxy server receives message 2,it resets the clock value to 0. The clock's value may incrementautomatically, e.g., in response to a system clock. If the clock's valueexceeds a timeout value, the proxy server may close the connectionassociated with the session. In the illustrated example, computingdevice 1 may be unable to send message 3 after the clock's value exceedsthe timeout value.

FIG. 9 is a message flow diagram illustrating message flows in anembodiment. In the illustrated embodiment, computing devices 1 and 2have exchanged messages 1 and 2 between times 0 and 3, as indicated inFIG. 8 and explained above. At time 4, computing device 1, uponrecognizing that a timeout is imminent (indicated in the figure by adashed line) may send a heartbeat message to computing device 2 prior tothe timeout indicated as time 5. Upon sending the heartbeat message, theproxy server may reset the clock, and so computing device 1 may be ableto send message 3 at time 6 because the proxy server would not haveclosed the connection, By sending the heartbeat message prior to a proxyserver timeout, the system is able to sustain a connection betweencomputing devices 1 and 2. The computing device that sends the heartbeatmessage may need to attempt to send the heartbeat message in sufficienttime that the clock value of the recipient of the heartbeat message alsodoes not exceed the timeout value.

FIG. 10 is a block diagram illustrating a flow of messages in anembodiment. In the illustrated embodiment, sender computing device 1000has opened a SIP session with recipient computing device 1002. When thesender computing device sends SIP message 1 through its Application/SIPlayer 1004, transport layer 1006 may segment the message into twosegments S1 and S2. To prevent a timeout, the sender computing devicemay send a heartbeat message S3. The heartbeat message may comprise acarriage return, line feed, both, or other information indicative of aheartbeat message that can be ignored by the application. The recipientcomputing device may then send SIP message 2 that is segmented astransport messages S4, S5, and S6 by transport layer 1016. The segmentedmessages may be of varying sizes.

In an embodiment, a computing device may send heartbeat messages in someconnections and may employ another mechanism with other connections tosustain its connections. As an example, the computing device may employheartbeat messages when sending messages to its own “home” server orother computing devices connected thereto, because the home server maybe able to associate the heartbeat message with the computing device'sconnection, and store an indication of the association. By doing so, theserver may be able to efficiently update the computing device's presenceinformation if the connection is subsequently lost. The computing devicemay send REGISTER messages in other connections when it may beadvantageous to do so. As an example, the computing device may sendREGISTER messages when an intermediate device fails to forward heartbeatmessages.

Although particular examples discussed herein refer to using SIP andTCP, alternate embodiments may use other equivalent or similarprotocols.

The computing device on which the techniques for sustaining sessionconnections are implemented may include a central processing unit,memory, input devices (e.g., keyboard and pointing devices), outputdevices (e.g., display devices), and storage devices (e.g., diskdrives). The memory and storage devices are computer-readable media thatmay contain instructions that implement the security system. Inaddition, the data structures and message structures may be stored ortransmitted via a data transmission medium, such as a signal on acommunications link. Various communications links may be used, such asthe Internet, a local area network, a wide area network, or apoint-to-point dial-up connection.

FIG. 1 illustrates an example of a suitable operating environment inwhich the techniques for sustaining session connections may beimplemented. The operating environment is only one example of a suitableoperating environment and is not intended to suggest any limitation asto the scope of use or functionality of the system. Other well-knowncomputing systems, environments, and configurations that may be suitablefor use include personal computers, server computers, hand-held orlaptop devices including “smart” cellular telephones, multiprocessorsystems, microprocessor-based systems, programmable consumerelectronics, network PCs, minicomputers, mainframe computers,distributed computing environments that include any of the above systemsor devices, and the like.

The techniques for sustaining session connections may be described inthe general context of computer-executable instructions, such as programmodules, executed by one or more computers or other devices. Generally,program modules include routines, programs, objects, components, datastructures, etc., that perform particular tasks or implement particularabstract data types. Typically, the functionality of the program modulesmay be combined or distributed as desired in various embodiments.

From the foregoing, it will be appreciated that specific embodiments ofthe invention have been described herein for purposes of illustration,but that various modifications may be made without deviating from thespirit and scope of the invention. Accordingly, the invention is notlimited except as by the appended claims.

1-35. (canceled)
 36. A method performed by a computing device forsustaining a session connection, comprising: opening a session with asecond computing device using a session initiation protocol, the sessionhaving a connection established through a proxy server; and sending aheartbeat message using a transport layer protocol, wherein the sessioninitiation protocol is employed by a higher layer of a datacommunications stack than the second protocol, and wherein the heartbeatmessage is a valid message of the transport layer protocol but ignoredby the session initiation protocol, and sending the heartbeat messagesustains the session connection by causing reset of a message clock ofthe connection.
 37. The method of claim 36, wherein the heartbeatmessage comprises a carriage return and line feed.
 38. The method ofclaim 36, wherein the heartbeat message is sent prior to expiry of themessage clock.
 39. The method of claim 38, wherein the message clockmeasures time elapsed since a previous message was sent or received. 40.The method of claim 36, wherein the heartbeat message is sent in absenceof a message of a session initiation protocol.
 41. The method of claim36, wherein, after transferring the heartbeat message from the computingdevice to the second computing device, the proxy server resets themessage clock.
 42. The method of claim 36, wherein the second protocolis TCP/IP.
 43. The method of claim 36, further comprising sendingmessages using the session initiation protocol, wherein the messages aresegmented by a transport layer into a set of messages of the transportlayer protocol.
 44. A computer-readable medium having stored thereoncomputer-executable instructions which, when executed, cause a computingsystem to perform a method comprising: opening a session with a secondcomputing device using a session initiation protocol, the session havinga connection established through a proxy server; and sending a heartbeatmessage using a transport layer protocol, wherein the session initiationprotocol is employed by a higher layer of a data communications stackthan the second protocol, and wherein the heartbeat message is a validmessage of the transport layer protocol but ignored by the sessioninitiation protocol, and sending the heartbeat message sustains thesession connection by causing reset of a message clock of theconnection.
 45. The computer-readable medium of claim 44, wherein themethod further includes sending messages using the session initiationprotocol, wherein the messages are segmented by a transport layer into aset of messages of the transport layer protocol.
 46. Thecomputer-readable medium of claim 44, wherein the heartbeat message issent in absence of a message of a session initiation protocol.
 47. Asystem for sustaining a session connection, comprising: a component thatreceives a message via a session connection with a remote computingdevice established through a proxy server, the session connection usinga session initiation protocol; a component that determines whether thereceived message is a heartbeat message, wherein the heartbeat messageis a valid message of a transport layer protocol but has no effect on asession initiation protocol; and wherein the session connection with theremote computing device is maintained by the heartbeat message bycausing reset of a message clock of the session connection.
 48. Thesystem of claim 47, wherein the heartbeat message comprises white spacecharacters.
 49. The system of claim 47, wherein the received message isforwarded to an application using the session initiation protocol whenit is not a heartbeat message.
 50. A system for sustaining a sessionconnection, comprising: a first component that establishes a sessionconnection with a remote computing device via a proxy server, thesession connection using a session initiation protocol; a secondcomponent that determines whether a message of the session initiationprotocol has been sent within a predetermined amount of time, and, if nomessage of the session initiation protocol has been sent, transmits aheartbeat message that is a valid message of the transport layerprotocol but ignored by the session initiation protocol, thereby causingreset of a message clock of the connection.
 51. The system of claim 50,wherein the message clock of the connection is maintained at the proxyserver.
 52. The system of claim 50, wherein the first and secondcomponent reside on a computing device.
 53. The system of claim 52,wherein the computing device is remote from the proxy server.
 54. Thesystem of claim 50, wherein the second component is configured totransmit the heartbeat message in the absence of a message of a sessioninitiation protocol.
 55. The system of claim 50, wherein the heartbeatmessage is sent prior to expiry of a message clock.